# -- coding: utf-8 -- 
# Name: app

from flask import Flask
import memcache

app = Flask(__name__)
mc = memcache.Client(['127.0.0.1:1234'], debug=True)
mc.add('username','zhangsan', time=120)
username = mc.get('username')
print(username)
mc.add('username','lisi', time=120)
print(username)


@app.route('/')
def hello_world():
    return 'hello world'


if __name__ == '__main__':
    app.run()
